package xuwei_k
import twitter4j._
import twitter4j.conf._

object TweetClient {
  
  val t = {
    val c = new ConfigurationBuilder
      c.setDebugEnabled(true)
      .setOAuthConsumerKey("a")
      .setOAuthConsumerSecret("a")
      .setOAuthAccessToken("a")
      .setOAuthAccessTokenSecret("a");
      
     new TwitterFactory(c.build()).getInstance()
  }
  
  def tweet(s:String){
    t.updateStatus(s)
  }
  
}